<%@ page language="java" import="java.util.*,com.imaker.domain.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path %>/css/system/core.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/plugin/ajaxUpload/ajaxfileupload.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/system/uploadHelper.css">
	<script type="text/javascript" src="<%=path%>/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/js/plugin/ajaxUpload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=path%>/js/plugin/ajaxUpload/uploadHelper.js"></script>
  </head>
  <script type="text/javascript">
  function uploadPic(){
  		new UploadHelper({
  			title: '模块图标上传',
  			addLine:true,
  			save:true,
  			saveAndReturn : true,
  			fieldId : 'pic',
  			path : '<%=path%>',
  			type : 'logo'
  		});
  }
  </script>
  <body>
  <div>
		<form  action="<%=path%>/system/modules/save.action" method="post" enctype="multipart/form-data">
		<table class="formTable">
		<tr>
		<td class="formLabel">模块名称</td>
		<td class="formData"><input type="text" class="text" name="modulesInfo.modulesName"></td>
		</tr>
		<tr>
		<td class="formLabel">【MORE】URL</td>
		<td class="formData"><input type="text" class="text" name="modulesInfo.moreUrl"></td>
		</tr>
		<tr>
		<td class="formLabel">【MORE】替代名称</td>
		<td class="formData"><input type="text" class="text" name="modulesInfo.moreTitle" value="更多"></td>
		</tr>
		<tr>
		<td class="formLabel">图片</td>
		<td class="formData"><input type="text" class="text" name="modulesInfo.pic" id="pic" onclick="uploadPic()"></td>
		</tr>
		<tr>
		<td class="formLabel">排序号</td>
		<td class="formData"><input type="text" class="text" name="modulesInfo.sortIndex"></td>
		</tr>
		<tr>
		<td class="formLabel">是否可用</td>
		<td class="formData"><input type="radio" class="radio" name="modulesInfo.stat" value="0">不可用<input type="radio" class="radio" checked="checked" name="modulesInfo.stat" value="1">可用</td>
		</tr>
		<tr>
			<td class="submit" colspan="2"><input type="button" onclick="submit()" value="保存"> </td>
		</tr>
		</table>
		<s:hidden name="modulesTypeInfo.id"></s:hidden>
		</form>
	</div>
  </body>
</html>
